<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
	<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1253">
	<TITLE></TITLE>
	<META NAME="GENERATOR" CONTENT="OpenOffice.org 2.2  (Win32)">
	<META NAME="CREATED" CONTENT="0;0">
	<META NAME="CHANGED" CONTENT="20110505;10101455">
	<STYLE TYPE="text/css">
	<!--
		@page { size: 21.01cm 29.69cm; margin: 2.01cm }
		P { margin-bottom: 0.2cm }
		PRE { font-family: "Times New Roman" }
	-->
	</STYLE>
</HEAD>
<BODY LANG="el-GR" DIR="LTR">
<PRE>    

<FONT SIZE=4><SPAN LANG="en-US"><B>Operations on 2-Ds arrays (i.e. Array[Array[Double]])</B></SPAN></FONT>

<FONT SIZE=4><SPAN LANG="en-US">Operations are provided to operate directly on 2-D arrays (i.e.  <I>Array[Array[Double]]</I><SPAN STYLE="font-style: normal">), without implicitly  converted to ScalaSci classes. </SPAN><FONT SIZE=4><SPAN LANG="en-US">Scalalab offers extensive support to wor</SPAN></FONT><FONT SIZE=4><SPAN LANG="en-US"><SPAN STYLE="font-weight: medium">k directly on 2-D arrays.  The object </SPAN></SPAN></FONT><FONT SIZE=4><SPAN LANG="en-US"><B>DD</B></SPAN></FONT><FONT SIZE=4><SPAN LANG="en-US"> </SPAN></FONT><FONT SIZE=4><SPAN LANG="en-US"><SPAN STYLE="font-weight: medium">provides operations on double arrays.</SPAN></SPAN></FONT></SPAN></FONT>

<FONT SIZE=4><SPAN LANG="en-US">The following routines are provided:</SPAN></FONT>

  <FONT SIZE=4><SPAN LANG="en-US"><B>Basic Mathematical Operations</B></SPAN></FONT>

<FONT SIZE=4><SPAN LANG="en-US"><U>1. Matrix multiplication</U></SPAN></FONT>

<FONT SIZE=4><SPAN LANG="en-US">Let us create a trial 2-D array:</SPAN></FONT>
        <FONT SIZE=4><SPAN LANG="en-US"><I><B>var a = Ones(9,9)</B></I></SPAN></FONT>
<FONT SIZE=4><SPAN LANG="en-US">Muliply it with the method  <I><B>DD.*</B></I> i.e<I>.</I></SPAN></FONT>
          <FONT SIZE=4><SPAN LANG="en-US"><I><B>var aa = DD.*(a,a) </B></I></SPAN></FONT>
<FONT SIZE=4><SPAN LANG="en-US">This method invokes a Scala based matrix multiplication routine</SPAN></FONT>

<FONT SIZE=4><SPAN LANG="en-US">Similarly, to multiply the Matrix </SPAN><SPAN LANG="en-US"><I><B>a</B></I></SPAN> <SPAN LANG="en-US">with the number 30.6 use:</SPAN></FONT>

  <FONT SIZE=4><SPAN LANG="en-US"><I><B>var aaa =  DD.*(30.6, a)   or     var aaa =  DD.*( a 20.6)   </B></I></SPAN></FONT>

<FONT SIZE=4><SPAN LANG="en-US"><U>2. Matrix addition and subtraction</U></SPAN></FONT>
<FONT SIZE=4><SPAN LANG="en-US">The methods</SPAN>  <SPAN LANG="en-US"><B>DD.+</B></SPAN> <SPAN LANG="en-US">and</SPAN>  <SPAN LANG="en-US"><B>DD.-  </B></SPAN><SPAN LANG="en-US">operate as  </SPAN><SPAN LANG="en-US"><B>DD.*</B></SPAN><SPAN LANG="en-US">.</SPAN></FONT></PRE>
</BODY>
</HTML>